package com.xbongbong.pro.statistic.help.strategy.field.method;

import com.xbongbong.paas.enums.StarEnum;
import com.xbongbong.pro.statistic.help.strategy.field.FieldAnalysisStrategy;
import com.xbongbong.pro.statistic.pojo.FieldAnalysisPojo;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhouwq
 * @date 2020/9/8 9:58
 */

public class StarFieldAnalysis implements FieldAnalysisStrategy {
    @Override
    public Map<String, String> doAnalysisField(FieldAnalysisPojo fieldAnalysisPojo) {
        Map<String, String> results = new HashMap<>(1 << 4);
        for (StarEnum starEnum : StarEnum.values()) {
            results.put(Integer.toString(starEnum.getValue()), starEnum.getText());
        }
        return results;
    }
}
